/// code : 200
/// message : "OK"
/// data : {"name":"hyy","gender":"男","mobile":"18792112781","email":"707058314@qq.com","photo":"https://api.gapsk.com/media/inspire/photo/test","birthday":"1593247294","countryid":3,"countrycode":"86","result":[{"title":"揚帆","groupid":1,"classroomid":"8932257","status":true},{"title":"綻放","groupid":2,"classroomid":"8932257","status":true},{"title":"拔萃","groupid":3,"classroomid":"8932257","status":true}]}

class UserInfoBean {
  int _code;
  String _message;
  UserInfo _data;

  int get code => _code;
  String get message => _message;
  UserInfo get data => _data;

  UserInfoBean({
      int code, 
      String message,
    UserInfo data}){
    _code = code;
    _message = message;
    _data = data;
}

  UserInfoBean.fromJson(dynamic json) {
    _code = json["code"];
    _message = json["message"];
    _data = json["data"] != null ? UserInfo.fromJson(json["data"]) : null;
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    map["message"] = _message;
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    return map;
  }

}

/// name : "hyy"
/// gender : "男"
/// mobile : "18792112781"
/// email : "707058314@qq.com"
/// photo : "https://api.gapsk.com/media/inspire/photo/test"
/// birthday : "1593247294"
/// countryid : 3
/// countrycode : "86"
/// result : [{"title":"揚帆","groupid":1,"classroomid":"8932257","status":true},{"title":"綻放","groupid":2,"classroomid":"8932257","status":true},{"title":"拔萃","groupid":3,"classroomid":"8932257","status":true}]

class UserInfo {
  String _name;
  String _gender;
  String _mobile;
  String _email;
  String _photo;
  String _birthday;
  int _countryid;
  String _countrycode;
  List<UserInfoUnit> _result;

  String get name => _name;
  String get gender => _gender;
  String get mobile => _mobile;
  String get email => _email;
  String get photo => _photo;
  String get birthday => _birthday;
  int get countryid => _countryid;
  String get countrycode => _countrycode;
  List<UserInfoUnit> get result => _result;

  Data({
      String name, 
      String gender, 
      String mobile, 
      String email, 
      String photo, 
      String birthday,
      int countryid, 
      String countrycode, 
      List<UserInfoUnit> result}){
    _name = name;
    _gender = gender;
    _mobile = mobile;
    _email = email;
    _photo = photo;
    _birthday = birthday;
    _countryid = countryid;
    _countrycode = countrycode;
    _result = result;
}

  UserInfo.fromJson(dynamic json) {
    _name = json["name"];
    _gender = json["gender"];
    _mobile = json["mobile"];
    _email = json["email"];
    _photo = json["photo"];
    _birthday = json["birthday"];
    _countryid = json["countryid"];
    _countrycode = json["countrycode"];
    if (json["result"] != null) {
      _result = [];
      json["result"].forEach((v) {
        _result.add(UserInfoUnit.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["name"] = _name;
    map["gender"] = _gender;
    map["mobile"] = _mobile;
    map["email"] = _email;
    map["photo"] = _photo;
    map["birthday"] = _birthday;
    map["countryid"] = _countryid;
    map["countrycode"] = _countrycode;
    if (_result != null) {
      map["result"] = _result.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// title : "揚帆"
/// groupid : 1
/// classroomid : "8932257"
/// status : true

class UserInfoUnit {
  String _title;
  int _groupid;
  String _classroomid;
  bool _status;

  String get title => _title;
  int get groupid => _groupid;
  String get classroomid => _classroomid;
  bool get status => _status;

  Result({
      String title, 
      int groupid, 
      String classroomid, 
      bool status}){
    _title = title;
    _groupid = groupid;
    _classroomid = classroomid;
    _status = status;
}

  UserInfoUnit.fromJson(dynamic json) {
    _title = json["title"];
    _groupid = json["groupid"];
    _classroomid = json["classroomid"];
    _status = json["status"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["title"] = _title;
    map["groupid"] = _groupid;
    map["classroomid"] = _classroomid;
    map["status"] = _status;
    return map;
  }

}